<include file='Common:head'/>
<div class="order_status">
	<div class="no_pay fl">未使用</div>
	<div class="pay_success fl">已使用</div>
	<div class="all fl">全部</div>
	<div class="cl"></div>
</div>
<div class="box2">
	<div class="receipt_goods md2">
		<div class="goods_img1 fl"><img src="__PRIVATE__/Images/timg.jpg"/></div>
		<div class="goods_info1 fl">
			<div class="title_left fl">20元优惠券</div>
			<div class="cash1 fr">馬上使用</div>
			<div class="cl"></div>
			<div class="content1">獲得原因：新用户注册赠送</div>
			<div class="content1">使用期限：2018-08-01</div>
		</div>
		<div class="cl"></div>
	</div>
	<div class="receipt_goods md2">
		<div class="goods_img1 fl"><img src="__PRIVATE__/Images/timg.jpg"/></div>
		<div class="goods_info1 fl">
			<div class="title_left fl">50元优惠券</div>
			<div class="cash1 fr">馬上使用</div>
			<div class="cl"></div>
			<div class="content1">獲得原因：新用户注册赠送</div>
			<div class="content1">使用期限：2018-08-01</div>
		</div>
		<div class="cl"></div>
	</div><div class="receipt_goods md2">
		<div class="goods_img1 fl"><img src="__PRIVATE__/Images/timg.jpg"/></div>
		<div class="goods_info1 fl">
			<div class="title_left fl">80元优惠券</div>
			<div class="cash1 fr">馬上使用</div>
			<div class="cl"></div>
			<div class="content1">獲得原因：新用户注册赠送</div>
			<div class="content1">使用期限：2018-08-01</div>
		</div>
		<div class="cl"></div>
	</div><div class="receipt_goods md2">
		<div class="goods_img1 fl"><img src="__PRIVATE__/Images/timg.jpg"/></div>
		<div class="goods_info1 fl">
			<div class="title_left fl">100元优惠券</div>
			<div class="cash1 fr">馬上使用</div>
			<div class="cl"></div>
			<div class="content1">獲得原因：新用户注册赠送</div>
			<div class="content1">使用期限：2018-08-01</div>
		</div>
		<div class="cl"></div>
	</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	<if condition="$_GET['type'] eq 'no_use'">
		$('title').html('我的優惠券');
		$('.header .title').html('我的優惠券');
		$('.order_status .no_pay').css('color','#33CCFF');
	<elseif condition="$_GET['type'] eq 'used'"/>
		$('title').html('已使用的優惠券');
		$('.header .title').html('已使用的優惠券');
		$('.order_status .pay_success').css('color','#33CCFF');
	<else/>
		$('title').html('全部優惠券');
		$('.header .title').html('全部優惠券');
		$('.order_status .all').css('color','#33CCFF');
	</if>
	
	$('.order_status .no_pay').click(function(){
		window.location.href = "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/gift_coupon',array('type'=>'no_use'))}";
	});
	$('.order_status .pay_success').click(function(){
		 window.location.href = "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/gift_coupon',array('type'=>'used'))}";
	});
	$('.order_status .all').click(function(){
		 window.location.href = "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/gift_coupon',array('type'=>'all'))}";
	});
	
	$('.header .left').html('<img src="__PRIVATE__/images/left.png" style="width:41%"/>');
	$('.header .right').html('');
	$('.header .left').click(function(){
		window.location.href = "{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/my')}"; 
	});
});
</script>
<include file='Common:footer'/>